Centos 7, Python shell witch actived virtual envirometn dont recognize backspace instead put H^
NickName:Reiverth Canelon Ask DateTime:2022-03-11T06:05:48

Centos 7, Python shell witch actived virtual envirometn dont recognize backspace instead put H^

Im using a centos 7 server, and runing Python 3.7.9 but the problem is that when i have the python's virtual enviroment activated, open the python shell, write anything and try to delete the caracter using the backspace key on the shell apear this simbol H^, or if i use the arrows key (up,down,left,right) they put ^[[A, ^[[B, ^[[C or ^[[D isnted of show the previous line. But if i deactivate the python's virtual enviroment i can use backspace and delete the characters or use the arrow keys without any problem.

I know that those symbols are the special character asociated with the key, but i dont know what cause this behaviour i try to search on google but i cant find anything that can help me. So if anyone can help me with a post, or other wuestion in here where the problem is solved i'll be gratefull.

There ir a screenshot of the shell. screenshot of python shell

Copyright Notice:Content Author:「Reiverth Canelon」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/71431348/centos-7-python-shell-witch-actived-virtual-envirometn-dont-recognize-backspace

More about “Centos 7, Python shell witch actived virtual envirometn dont recognize backspace instead put H^” related questions

Centos 7, Python shell witch actived virtual envirometn dont recognize backspace instead put H^

Im using a centos 7 server, and runing Python 3.7.9 but the problem is that when i have the python's virtual enviroment activated, open the python shell, write anything and try to delete the caracter

Show Detail

Python3 shell prints ^H on pressing backspace key on Linux

On python3 shell launched on bash misbehaves on pressing arrows or backspace. It prints ^H for backspace, and I can remove these characters using Ctrl+backspace or shift+backspace. But I don't want...

Show Detail

Python virtual environment is not activating in centOS

I am trying to install django in CentOS 7 cloud server. For that I have installed Virtual environment by using python -m venv env. And environment installed successfully, but it is not activating w...

Show Detail

How does one enter a Python virtual environment and run shell commands in it from a shell script?

I have been writing a shell script to be run in a CentOS 7 Docker container in order to create an AppImage. In this script I would like to run the Shell command pip install -U spyder from within a ...

Show Detail

backspace behaviour changed to ^H in bash shell after sometime

My backspace is deleting letter backward as expected in my bash shell after logon. But for unknown reason, occasionally, after a while of use, it instead outputs ^H. This is annoying. I have to log...

Show Detail

Python's input() does not automatically recognize GNU readline

The first problem I had was Python's input() does not handle backspaces, and shows ^H instead: $ python3 -c "input()" ^H^H^H^H^H^H^H However backspaces work fine in an interactive shell. Further

Show Detail

Install Python 3.7,PIP,virtual env on Centos7

Currenlty my linux machine has Centos7 and by deafault i got Python 2.7.5 and i have installed python 3.6.8.Now i want to install Python 3.7,pip,virtual env on to my machine. We tried below link,but

Show Detail

How to use backspace in UnetStack Shell?

Whenever I use backspace in Unet shell the cursor moves forward instead of erasing the line.Is there some other way to use backspace in unet shell ?

Show Detail

How to install active python in virtual environment on centos

How can i install ACtive python in virtual env. I have this problem as in this post answer https://stackoverflow.com/a/7458717/1958218 Now that was solved by using active python on centos itself....

Show Detail

Problem creating python virtual env on CentOS 7

I'm on CentOS 7 : $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) I am having trouble setting up a virtual env : $ python3 -m venv /home/noien/myVenv Error: Command '['/home/noien/...

Show Detail